<?php

/* @var $this yii\web\View */

use yii\helpers\Html;
use yii\helpers\Url;
use yii\widgets\ActiveForm;

$web = Url::base();
?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <link href="<?= $web ?>/css/frame.css" rel="stylesheet">

    <?= Html::csrfMetaTags() ?>
    <title>登录</title>
</head>
<body class="light-gray-bg">
<div style="margin-left: auto;margin-right: auto; width: 600px;  height: 200px; display: block;"></div>
<!--<img src="--><? //= $web ?><!--/images/manager-login-bg.png" style="margin-left: auto;margin-right: auto; width: 600px; display: block;">-->
<div class="templatemo-content-widget templatemo-login-widget white-bg">
    <!--    <header class="text-center">-->
    <!--        <h1>三方积分系统</h1>-->
    <!--    </header>-->

    <form id="login-form" class="templatemo-login-form" action='login?redirect_url=<?= $redirect_url ?>' method="post">
        <?php
        if (isset($model->account) && $model->account == '') {
        ?>
        <div class="form-group field-loginform-account required has-error">
            <?php
            } else {
            ?>
            <div class="form-group field-loginform-account required">
                <?php
                }
                ?>
                <!--        <div class="form-group field-loginform-account required has-error">-->
                <div class="input-group" style="height: 40px;">
                    <div class="input-group-addon" style="height: 40px;"><i class="fa fa-user fa-fw"></i></div>
                    <input type="text" id="loginform-account" class="form-control" style="height: 40px;" name="LoginForm[account]" value="<?= $model->account ?>" autofocus="" placeholder="请输入账号">
                </div>
                <div class="col-lg-offset-2">
                    <div class="help-block"> 请输入账号</div>
                </div>
            </div>

            <?php
            if ($model->getErrors() && isset($model->getErrors()['password'])) {
            ?>
            <div class="form-group field-loginform-account required has-error">
                <?php
                } else {
                ?>
                <div class="form-group field-loginform-account required">
                    <?php
                    }
                    ?>
                    <!--<div class="form-group field-loginform-password required">-->
                    <div class="input-group" style="height: 40px;">
                        <div class="input-group-addon" style="height: 40px;"><i class="fa fa-key fa-fw"></i></div>
                        <input type="password" id="loginform-password" class="form-control" style="height: 40px;" name="LoginForm[password]" value="<?= $model->password ?>" placeholder="******">
                        <!--            <div class="col-lg-8"><div class="help-block"></div></div>-->
                    </div>

                    <div class="col-lg-offset-2">
                        <div class="help-block">
                            <?php
                            if (isset($model->getErrors()['password'][0])) {
                                if ($model->getErrors()['password'][0] == 'ERROR') {
                                    echo '账户密码错误!';
                                } else {
                                    echo '请输入密码';
                                }
                            }
                            ?>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <button type="submit" class="btn btn-danger col-lg-12" style="height: 40px;" name="login-button">登录</button>
                </div>
    </form>

    <div style="color: #a0a0a0; font-size: 16px; position: fixed; bottom: 20px; left: 0; text-align: center; width: 100%;">全国服务热线: 400-xxx-xxxx</div>
</div>
</body>
</html>

